package com.odianyun.hello.service;

import com.odianyun.hello.model.PO.Article;
import com.odianyun.hello.model.PO.ArticleExtends.CommentInfo;
import com.odianyun.hello.model.PO.ArticleExtends.LikeInfo;

import java.util.List;

public interface IArticleService {
    String addArticle(Article article);

    List<Article> findArticleByTitleRegex(String title);

    void deleteArticleById(String id);

    List<Article> getArticleByTitle(String title);

    void addComment(String id , CommentInfo commentInfos);

    String addLike(String id, LikeInfo likeInfos);

    void deleteLike(String title, String id);

    void deleteComment(String title, String id);
}
